
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { GlzdEntity } from './entities/glzdentity';

import { GlzdProxy } from './glzdproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/businessdevelopmentcenter/jmgl/v1.0/glzdfl_frm',
    entityType: GlzdEntity
})
export class GlzdRepository extends BefRepository<GlzdEntity> {
    public name = 'GlzdRepository';

    public proxy: GlzdProxy;
    public paginationInfo = {
        GlzdEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(GlzdProxy, null);
    }
}